<template>
    <div>
        <el-page-header @back="goBack" content="数据库特权信息"> </el-page-header>
        <el-form ref="form" :model="from" label-widtf="80px">
            <el-form-item label="序列号">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="特权名称">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="描述">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            <el-form-item label="文件路径">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
        </el-form>
        <div style="text-align:right">
            <el-button type="primary" @click="submit">提交</el-button>
        </div>
    </div>
</template>

<script>
import { post } from '@/utils/request';
import { defineComponent } from '@vue/utils/request'

export default {
   
   data(){
       return {
           content: "新增数据库特权信息",
           form:{}
       };
   },
   methods:{
       submit(){
           let url = "http://localhost:8888/basePrivilege/savaOrUpdate";
           post(url,this.form).then(resp => {
               this.$message({type:"success",message:resp.message});
               this.goBack();
           });
       },
       goBack(){
           this.$router.go(-1);
       }
   }
};
</script>

<style lang="sass">

</style>
